package com.qf.springcloud.client.fallback;

import com.qf.springcloud.client.ProviderClient;
import org.springframework.stereotype.Component;

import java.util.Map;

/**
 * 针对ProviderClient降级类
 */
@Component
public class ProviderClientFallback implements ProviderClient {
    @Override
    public String test() {
        System.out.println(Thread.currentThread().getName());
        return "test方法凉凉了~~~";
    }

    @Override
    public String test1(String id) {
        return "-1";
    }

    @Override
    public String test2(String name, Integer age) {
        return "name和age都没有~";
    }

    @Override
    public Map test3(Map map) {
        return null;
    }
}
